package com.ruoyi.scrap.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.scrap.domain.ScrapApplyInfo;
import com.ruoyi.scrap.domain.po.ScrapApplyPo;
import com.ruoyi.scrap.mapper.ScrapApplyInfoMapper;
import com.ruoyi.scrap.service.ScrapApplyInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScrapApplyInfoServiceImpl extends ServiceImpl<ScrapApplyInfoMapper, ScrapApplyInfo> implements ScrapApplyInfoService {

    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<ScrapApplyPo> getScrapApplyInfo(ScrapApplyPo applyPo) {
        return baseMapper.getScrapApplyInfo(applyPo);
    }

    @Override
    public List<ScrapApplyPo> getWaitScrapApply(ScrapApplyPo applyPo) {
        return baseMapper.getWaitScrapApply(applyPo);
    }

}
